package cn.kgc.common.util;


import cn.kgc.common.constant.ResultConstant;

/**
 * @author kgc
 */
public class HttpException extends  RuntimeException {
    /**
     * 异常码
     */
    private int code;

    public HttpException(ResultConstant resultConstant){
        super(resultConstant.getMessage());
        this.code=resultConstant.getCode();
    }

    public int getCode() {
        return code;
    }
}
